Skip to content

Conversation

@yangzhg
Copy link
Member

@yangzhg yangzhg commented Jun 3, 2020

BinaryPredicte's equals funtion compare by opccode ,
but the opcode is never inited,
so it will return true if this child is same, for example a>1 and a<1 are equal
Fixes #3756

@morningman morningman added approved Indicates a PR has been approved by one committer. area/planner Issues or PRs related to the query planner kind/fix Categorizes issue or PR as related to a bug. labels Jun 3, 2020
morningman
morningman previously approved these changes Jun 3, 2020
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@EmmyMiao87 EmmyMiao87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morningman morningman merged commit a8c95e7 into apache:master Jun 4, 2020
morningman pushed a commit to morningman/doris that referenced this pull request Jun 4, 2020
BinaryPredicte's equals function compare by opcode ,
but the opcode may not be inited yet. 
so it will return true if this child is same,  for example `a>1` and `a<1` are equal.
@yangzhg yangzhg deleted the fix_binary_equal branch July 3, 2020 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/planner Issues or PRs related to the query planner kind/fix Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BinaryPredict's equals function compares ignore the op

4 participants